use gtk::prelude::*;
use gtk::Application;

fn main() {
    let app = Application::builder()
        .application_id("demo.gtkrs.test")
        .build();
    app.connect_activate(|app| {
        // load from resource and run
        let builder = gtk::Builder::from_resource("/demo/ui/mainwin.ui");
        let win: gtk::ApplicationWindow = builder.object("mainwin").unwrap();
        win.set_application(Some(app));
        win.show_all();
    });
    app.run();
}
